from settings.config import Config
from create_app import create_flask_app

# 调用工厂方法，生成flask对象


app = create_flask_app(Config)


@app.route('/')
def index():
    name = app.config.get('MYSQL_USER')
    print(name)
    return "通过"


if __name__ == '__main__':
    print(app.url_map)
    app.run()

